package indi.kider.server.employee.service;

import indi.kider.common.model.employee.Employee;
import indi.kider.server.employee.model.PwdChanger;
import pers.vankid.common.model.base.CommonResponse;
import pers.vankid.common.utils.page.PageRequest;
import pers.vankid.common.utils.page.PageResponse;
import java.util.List;

/**
 * Created by shixj on 2018/4/23.
 */
public interface EmployeeService {
    List<Employee> getUsersToLogin(String loginName);
    List<Employee> getUsersByLoginNameWithLike(String loginName);
    Employee getEmployeeById(Long id);
    Employee add(Employee employee) throws Exception ;
    Employee modify(Employee employee)throws Exception ;
    CommonResponse modifyPwd(PwdChanger pwdChanger) ;
    void del(Long id);
    void delHzById(Long id);
    PageResponse getEmployees(Employee employee,int num,int size);
    PageResponse getEmployees(PageRequest<Employee> employeePageRequest);
    PageResponse getHzEmployees(PageRequest<Employee> employeePageRequest,Employee employee);

    List<Employee> getEmployeesNoPage(Long enId);

}
